#include <stdio.h>
int main(void)
{
	char buffer[100];//保存格式化后的字符串
	int age =18;
	double weight=65.5;
	int height=180;
	sprintf(buffer,"身高:%dcm,体重:%.2fkg,年龄:%d岁",height,weight,age);
	printf("%s\n",buffer);
	return 0;

}
